//
//  UILabel+Extend.h
//  MexicoLoan
//
//  Created by WXP on 2025/2/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (Extend)

@property (nonatomic, assign) CGFloat lineSpace;       // 行间距 只有扩展方法适配才能计算
@property (nonatomic, assign) CGFloat fontNum;         // 设置字号
@property (nonatomic, assign) int numLimit;            // 字符数限制
@property (nonatomic,   copy) NSString * verticalText; // 文字竖排

#pragma mark - 固定宽度
- (void)fitFixed:(CGFloat)width;
- (void)fitTitle:(NSString *)title fixed:(CGFloat)width;

#pragma mark - 可变宽度
- (void)fitVariable:(CGFloat)width;
- (void)fitTitle:(NSString *)title variable:(CGFloat)width;

@end

NS_ASSUME_NONNULL_END
